﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Resources/Master.Master" AutoEventWireup="true" CodeBehind="UpdateSchedule.aspx.cs" Inherits="Assignment_3.Feature___Housekeeping.UpdateSchedule" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div style="margin-top: 20px; margin-left: 3%; margin-right: 3%">
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>

        <h1>Update Schedule</h1>

        <br />

        <table id="schedule">
            <tr class="alt">
                <td class="auto-style3">Schedule ID:
                </td>
                <td class="auto-style4">
                    <asp:Label ID="lblScheduleID" runat="server"></asp:Label>
                    &nbsp;
    <br />
                </td>
            </tr>
            <tr>
                <td class="auto-style1">Staff ID:</td>
                <td class="auto-style2">
                    <asp:Label ID="lblStaffID" runat="server"></asp:Label>
                    &nbsp;
                </td>
            </tr>
            <tr class="alt">
                <td class="auto-style3">Room ID:</td>
                <td class="auto-style4">
                    <asp:TextBox ID="tbxRoom" runat="server" MaxLength="5"></asp:TextBox><ajaxToolkit:FilteredTextBoxExtender ID="FilteredTextBoxExtender1" runat="server" TargetControlID="tbxRoom" FilterType="LowercaseLetters,UppercaseLetters,Numbers"></ajaxToolkit:FilteredTextBoxExtender>
                    &nbsp;
    <asp:Label ID="lblCheckRoomID" runat="server" ForeColor="Red"></asp:Label>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="tbxRoom" ErrorMessage="Please enter a room ID!" ForeColor="Red" Display="Dynamic"></asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ControlToValidate="tbxRoom" Display="Dynamic" ErrorMessage="The Room ID is not in the correct format! Please enter an integer!" ForeColor="Red" ValidationExpression="^([0-9]{1,})$"></asp:RegularExpressionValidator>
                </td>
            </tr>
            <tr>
                <td class="auto-style1">Date of Duty:</td>
                <td class="auto-style2">
                    <asp:TextBox ID="tbxDate" runat="server"></asp:TextBox><ajaxToolkit:CalendarExtender ID="CalendarExtender1" runat="server" TargetControlID="tbxDate" Format="yyyy-MM-dd"></ajaxToolkit:CalendarExtender>
                </td>
            </tr>
            <tr>
                <td class="auto-style1">Progress:</td>
                <td class="auto-style2">
                    <asp:Label ID="lblProgress" runat="server"></asp:Label>
                    &nbsp;
                </td>
            </tr>
        </table>

        <br />
        <asp:Label ID="lblSuccess" runat="server" ForeColor="Red"></asp:Label>
        <br />
        <asp:Button ID="tbnUpdate" runat="server" Text="Update" OnClick="tbnUpdate_Click" />
        &nbsp;&nbsp;&nbsp;&nbsp;
        <asp:Button ID="tbnBack" runat="server" Text="Back" OnClick="tbnBack_Click" />
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    </div>
</asp:Content>
